from django.conf.urls.defaults import patterns, include, url
from django.conf import settings

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'tickets.views.home', name='home'),
    # url(r'^tickets/', include('tickets.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    
    (r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    
    (r'^$', 'ticket.views.index'),
    
    (r'^chamado/(?P<id>.*)$', 'ticket.views.chamado'),
    (r'^chamados/$', 'ticket.views.chamados'),
    (r'^remover-chamado/(?P<id>.*)$', 'ticket.views.remover_chamado'),
    
    (r'^logout/$', 'ticket.views.logout'),
    (r'^home/$', 'ticket.views.home'),
    
    (r'^usuario/(?P<id>.*)$', 'ticket.views.usuario'),
    (r'^usuarios/$', 'ticket.views.usuarios'),
    (r'^remover-usuario/(?P<id>.*)$', 'ticket.views.remover_usuario'),
    
    (r'^empresa/(?P<id>.*)$', 'ticket.views.empresa'),
    (r'^empresas/$', 'ticket.views.empresas'),
    (r'^remover-empresa/(?P<id>.*)$', 'ticket.views.remover_empresa'),
    
    (r'^maquina/(?P<id>.*)$', 'ticket.views.maquina'),
    (r'^maquinas/$', 'ticket.views.maquinas'),
    (r'^remover-maquina/(?P<id>.*)$', 'ticket.views.remover_maquina'),
)
